]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
build: Fix check-for-missing for srcdir != builddir
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 21 Jun 2016 19:55:06 +0000 (21:55 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Tue, 21 Jun 2016 19:55:26 +0000 (21:55 +0200)
tools/check-for-missing.py

index 6168375a0f4c0c84591a91ea2c9ea0b08053b15b..7b12371b7419e6e1f557095f939920f39c344225 100755 (executable)
@@ -12,12 +12,13 @@ srcdir=sys.argv[1]
 distdir=sys.argv[2]
 excludes=sys.argv[3:]
 
+cwd=os.getcwd()
 os.chdir(srcdir)
 
 status=0
 for f in subprocess.Popen(["git", "ls-files"], stdout=subprocess.PIPE).stdout:
     f = f.decode('utf-8').strip()
-    if (not os.path.exists(os.path.join(distdir, f)) and
+    if (not os.path.exists(os.path.join(cwd, distdir, f)) and
         not any((fnmatch.fnmatch(f, p) for p in excludes))):
         print("File missing from distribution:", f)
         status=1